package com.es.www.jdk.controller;

import lombok.extern.slf4j.Slf4j;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

import com.es.www.jdk.factory.CustomBeanFactory;
import com.es.www.jdk.service.DogService;

/**
 * @Created by michangtao
 * @Date 2022/1/26 17:16
 * @Description
 */
@Slf4j
@Controller
@RequestMapping("/index")
public class DemoController {


    @RequestMapping("/")
    public void test() {
        DogService dogService = CustomBeanFactory.getBean("dogService");
        dogService.bite();
        dogService.drink();
    }
}
